<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" type="text/css" href="../../xunjiadan/css/match.css">
    <!--//////////////////////////////////-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <script type="text/javascript" src="../../hezuo/jQuery.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../static/h-ui/js/H-ui.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
    <!--<link rel="stylesheet" href="../../ht-css/backofficeInfo.css">-->
    <!--<link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css"/>-->
    <!--<link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css"/>-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css"/>
    <!--时间插件-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
    <title>新增询价单</title>
</head>
<body>
<nav class="breadcrumb">订单管理<span class="c-gray en">&gt;</span>询价单管理<span class="c-gray en">&gt;</span>新增
</nav>
<article class="page-container">
    <div class="bg-1 bk-gray pd-20">
        <div class="main">
            <!--<div class="line"><div class="text">询价商品信息</div>&lt;!&ndash;<div id="inquiry_status" class="status"></div>&ndash;&gt;</div>-->
            <form id="form-search" class="clearfix">
                <!--<div class="clearfix">
                    <div class="form-label f-l w-99 text-r lh-26" style="margin-left: 18px;">选择渠道商：</div>
                    <span class="size-M f-l select_s">
                        <select id="ascription_lsit" class="select radius f-l ml-10" name="brandclass" size="1" style="width:100%; height: 30px;">
                        <script id="ascription_bob" type="text/x-dot-template">
                            <option value="" selected>请选择</option>
                            {{if( it && it.length>0 ){ }}
                            {{ for(var i=0; i< it.length; i++) { }}
                            <option value="{{=it[i].customerCode}}">{{=it[i].customerName}}</option>
                            {{ } }}
                            {{ }else{ }}
                            <option>没有数据</option>
                            {{ } }}
                        </script>
                    </select>
                    </span>
                </div> </br>-->
                <div class="clearfix">
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4"   style="width:99px;">询价单号：</div><span class="size-M f-l select_s">
                        <span id="inquiry_id"></span>
                    <!--<input type="text" id="inquiry_id" class="input-text radius" style="width:240px">-->
                </span>
                    </div>
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4" style="margin-left:70px;width: 80px;">询价时间：</div>
                        <!--<span id="created_time"></span>-->
                    </div>
                </div>
                <div class="clearfix">
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4" style="width:99px;"><span style="color: red">* </span>选择渠道商：</div>
                        <span class="size-M f-l select_ph" style="display: inline-block;width:175px ">
                    <select id="ascription_lsit" onchange="myChoose()" class="select radius f-l ml-10" name="brandclass" size="1" style="width:100%; height: 30px;">
                    <script id="ascription_bob" type="text/x-dot-template">
                        <option value="" selected>请选择</option>
                        {{if( it && it.length>0 ){ }}
                        {{ for(var i=0; i< it.length; i++) { }}
                        <option value="{{=it[i].customerId}}" data-down="{{=it[i].customerCode}}">{{=it[i].customerName}}</option>
                        {{ } }}
                        {{ }else{ }}
                        <option>没有数据</option>
                        {{ } }}
                    </script>
                </select>
                </span>
                    </div>

                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4" style="margin-left:58px;width: 120px;"><span style="color: red">* </span>请选择渠道的客户：</div>
                        <!--<a class="btn btn-secondary radius size-S ml-10" onclick="chooseProject()">选择</a>-->

                        <span class="size-M f-l select_ph">
                        <input type="text" id="customer_name" class="input-text radius" style="width:150px" disabled="disabled">
                    </span>
                        <input class="btn btn-secondary radius size-S ml-10" onclick="chooseProject()" type="button" value="选择"/>
                    </div>
                </div>
                <div class="clearfix">
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4"   style="width:99px;"><span style="color: red">* </span>询价联系人：</div>
                        <span class="size-M f-l select_s">
                            <input type="text" id="linkman" class="input-text radius" style="width:150px" maxlength="10">
                    </span>
                    </div>
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4" style="margin-left:30px;width: 120px;"><span style="color: red">* </span>询价联系电话：</div>
                        <span class="size-M f-l select_s">
                            <input type="text" id="linkman_phone" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');" class="input-text radius" style="width:150px">
                    </span>
                    </div>
                </div>


                <div class="clearfix">
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4" style="margin-left:16px;width:106px;"><span style="color: red">* </span>请选择询价地址：</div>
                            <span class="select-box size-M radius col-xs-8 ml-10" style="width:120px">
                                        <select class="select" onchange="discountdata(1)" name="brandclass" id="getArea" size="1">
                                            <option value="" selected>请选择</option>
                                            <!--<option value="1">北京</option>-->
                                            <!--<option value="2">天津</option>-->
                                        </select>
                                    </span>
                            <span class="select-box size-M radius col-xs-8 ml-10" style="width:120px">
                                        <select class="select" name="brandclass" onchange="discountdata(2)" id="getPlace" size="1">
                                            <option value="" selected>请选择</option>
                                            <!--<option value="1">北京仓</option>-->
                                            <!--<option value="2">天津仓</option>-->
                                        </select>
                                    </span>
                            <span class="select-box size-M radius col-xs-8 ml-10" style="width:120px">
                                        <select class="select" name="brandclass" onchange="discountdata(3)" id="getCity" size="1">
                                            <option value="" selected>请选择</option>
                                            <!--<option value="1">北京仓</option>-->
                                            <!--<option value="2">天津仓</option>-->
                                        </select>
                                    </span>
                            <span class="select-box size-M radius col-xs-8 ml-10" style="width:120px">
                                        <select class="select" name="brandclass" onchange="discountdata(4)" id="getCountry" size="1">
                                            <option value="" selected>请选择</option>
                                            <!--<option value="1">北京仓</option>-->
                                            <!--<option value="2">天津仓</option>-->
                                        </select>
                                    </span>
                    </div>

                </div>
                <!--<div class="clearfix">
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4" style="margin-left:-29px;width:130px;"><span style="color: red">* </span>要求采购回复时间：</div>
                        <span class="size-M f-l select_s">
                         <input onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'tuisongmax\')||\'%y-%M-#{%d+1}\'}',dateFmt:'yyyy-MM-dd HH-mm-ss'})" class="input-text Wdate radius" id="tuisongmax" type="text" placeholder="" style="width:116px;" autocomplete="off">
                    </span>
                    </div>
                    &lt;!&ndash;<div class="lowaa pos-r">
                        <div class="replaceorder_lable w4" style="margin-left:25px;width: 120px;"><span style="color: red">* </span>要求到货时间：</div>
                        <span class="size-M f-l select_s">
                       <input onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'tuisongmax\')||\'%y-%M-#{%d+1}\'}',dateFmt:'yyyy-MM-dd'})" class="input-text Wdate radius" id="tuisongmax" type="text" placeholder="" style="width:116px;" autocomplete="off">
                    </span>
                    </div>&ndash;&gt;
                </div>-->
                <!--<div class="clearfix">
                    <div class="lowaa pos-r">
                        <div class="replaceorder_lable w4"   style="width:99px;"><span style="color: red">*</span>其他说明：</div>
                        <span class="formControls col-sm-5">
                            <textarea name="projectName" id="projectName"  datatype="*" nullmsg="录入必填信息！" errormsg="录入必填信息" class="textarea" title="" maxlength="120"></textarea>
                        </span>
                    </div>
                </div>-->
                <div class="clearfix mb-15">
                    <label class="replaceorder_lable w4"   style="width:99px;">其他说明：</label>
                    <div class="formControls col-sm-5">
                        <textarea name="other_explain" id="other_explain"  datatype="*" nullmsg="录入必填信息！" errormsg="录入必填信息" class="textarea" title=""></textarea>
                    </div>
                </div>

                <p style="padding-left: 40px"><span style="color: #dd0000">*</span>要求到货时间：<input class="workinput wicon input-text radius" id="timemin" style="width: 129px;"  placeholder="要求到货时间" readonly></p>
                <p style="padding-left: 40px"><span style="color: #dd0000">*</span>要求采购回复时间：<input class="workinput wicon input-text radius" id="timemax" onclick="timeSetMin(this)"  style="width: 129px;"  placeholder="要求采购时间" readonly></span></p>

            </form>
                <!--&lt;!&ndash;地址区域&ndash;&gt;
                <div class="address_test" style="position:relative;top:0px;width:400px;display:inline-block">

                </div>-->

                <!--<div class="text-c mb-10">
                    <input type="submit" id="addBtn" class="btn btn-secondary radius mr-20 powerButton 103" value="新&nbsp;&nbsp;增">
                    <input type="submit" id="submitBtn" class="btn btn-secondary radius mr-20 powerButton 103" value="查&nbsp;&nbsp;询">
                    <input type="reset" id="resetBtn" class="btn radius powerButton 103" value="重&nbsp;&nbsp;置" style="line-height: 1">
                </div>-->

            <div class="line line1"><div class="text">询价商品清单</div></div>
            <ul id="fujian" class="fujian">
                <!--<li>附件1：<p><span>QQ图片123123323.jpg（7.33k）</span><a href="#">查看</a></p></li>
                <li>附件2：<p><span>QQ图片123123323.jpg（7.33k）</span><a href="#">查看</a></p></li>-->
            </ul>

            <div class="big-table">
                <table cellspacing="0" cellpadding="0" border="0" class="rfqgoods">
                    <thead>
                    <tr class="rfqg_h">
                        <td class="rfqg_td1">序号</td>
                        <td class="rfqg_td2">商品编码</td>
                        <td class="rfqg_td3">商品名称</td>
                        <td class="rfqg_td4">平台商品名称</td>
                        <td class="rfqg_td5">分类</td>
                        <td class="rfqg_td6">品牌</td>
                        <td class="rfqg_td7">商品描述</td>
                        <td class="rfqg_td8">订货要求</td>
                        <td class="rfqg_td9">价格</td>
                        <td class="rfqg_td10">数量</td>
                        <td class="rfqg_td11">单位</td>
                        <td class="rfqg_td12">小计</td>
                        <!--<td class="rfqg_td13">要求到货时间</td>
                        <td class="rfqg_td14">要求采购时间</td>-->
                        <td class="rfqg_td15">操作</td>
                    </tr>
                    </thead>
                    <tbody id="productList">
                    </tbody>
                </table>

            </div>
            <div class="bottom bottomBtn">
                <!--<input id="addProduct" class="addExistingProduct p1" style="padding-left: 10px;padding-right: 10px;margin-left: 10px;" type="submit" value="+添加已有商品"/>-->
                <input id="temporaryAdd" class="p2" type="submit" value="+添加临采商品"/>
                <a id="Excel" class="btn  radius size-S " onclick="Excelss()" style="margin-left: -480px;width: 112px;height: 30px;margin-top: -2px;" href=''>下载Excel模板</a>
                <a id="piliang" onclick="upLoadFile()" class="btn  radius size-S " style="margin-left: 5px;width: 112px;height: 30px;margin-top: -2px;">批量导入商品</a>
                <input id="fileUp" type="file" onchange="putDataToPage()" style="display: none">
<!--                <input id="release" class="p6" type="submit" value="提交询价单"/>-->
                <input id="save" class="p6" type="submit" value="提交询价单"/> <!--onclick="SavedSuccessfully()"-->
                <!--<input id="return" class="p5" type="submit" value="退回"/>-->
<!--                <input id="temporarySelect" class="p6" type="submit" value="临采商品"/>-->
                <!--<input id="quotationCompletion" class="p7" type="submit" value="报价完成"/>--><!--onclick="CompleteTheQuotation()-->
            </div>

        </div>
        <!--/////////////弹出层//////////////////////-->
        <!--//////////////完成报价/////////////////-->
        <div id="completeTheQuotation" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
                    <div class="modal-header">
                        <h3 class="modal-title"><b>提示</b></h3>
                        <a class="close" data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <div class="modal-body">
                        <div style="margin-top:74px;" align="center">
                            <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"><span id="notQuoted"></span><strong>您确定要完成报价吗?</strong></span>
                        </div>
                        <div style="margin-top: 83px" align="center">
                            <button id="completeTheQuotationBtn" class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">确定</button>
                            <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <!--//////////////报价完成/////////////////-->
        <!-- <div id="CompleteQuotationSuccess" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
              <div class="modal-dialog">
                  <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
                      <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                          <span style="font-size: 18px;color: #333333;letter-spacing: 0;">询价单报价完成！</span>
                      </div>
                  </div>
              </div>
         </div>-->
        <!--//////////////撤销/////////////////-->
        <!--<div id="Undo" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
                    <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                        <span style="font-size: 18px;color: #333333;letter-spacing: 0;">该询价单已撤销!</span>
                    </div>
                </div>
            </div>
        </div>-->
        <!--//////////////存在临采商品/////////////////-->
        <!--<div id="temporaryProduct" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
                    <div class="modal-header"  >
                        <h3 class="modal-title"><b>提示</b></h3>
                        <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <div class="modal-body">
                        <div style="margin-top:74px;"align="center">
                            <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"> <strong>询价单存在临采商品，将待定价，您确定吗？</strong></span>
                        </div>
                        <div style="margin-top: 83px" align="center">
                            <button id="temporaryProductBtn" class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">确定</button>
                            <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>-->
        <!--//////////////存在临采商品/////////////////-->
        <!--<div id="tempComplateQuotation" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
                    <div class="modal-header"  >
                        <h3 class="modal-title"><b>提示</b></h3>
                        <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <div class="modal-body">
                        <div style="margin-top:74px;"align="center">
                            <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"> <strong>您还有<span id ="tempNum"  style="color: #003700;">3</span>个商品未报价，您确定要完成报价吗？</strong></span>
                        </div>
                        <div style="margin-top: 83px" align="center">
                            <button id="tempComplateQuotationBtn" class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">确定</button>
                            <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>-->
        <!--//////////////询价单退回原因/////////////////-->
        <!--<div id="ReturnReason" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
                    <div class="modal-header"  >
                        <h3 class="modal-title"><b>提示</b></h3>
                        <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <div class="modal-body">
                        <div style="margin-top:31px;">
                         <div style="float: left;margin-left: 29px">询价单退回原因：</div><span><textarea id="back_reason" style="border: 1px solid #E4E6E8;border-radius: 2px;width: 361px;height: 117px;resize:none;"></textarea></span>
                        </div>
                        <div style="margin-top: 26px" align="center">
                            <button id="returnModalBtn" class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">退回</button>
                            <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>-->
        <!--//////////////存在异常/////////////////-->
        <div id="" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
                    <div class="modal-header"  >
                        <h3 class="modal-title"><b>提示</b></h3>
                        <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <div class="modal-body">
                        <div style="margin-top:74px;"align="center">
                            <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"> <strong>您要购买的商品存在异常或库存不足的情况，<br>请您联系客服进行处理</strong></span>
                        </div>
                        <div style="margin-top: 83px" align="center">
                            <button class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">联系客服</button>
                            <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 225px; height:33.8px;border-radius: 4px;">将已有库存商品生成采购订单</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>

        <!--//////////////释放成功/////////////////-->
        <div id="ReleasedSuccessfully" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
                    <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                        <span style="font-size: 18px;color: #333333;letter-spacing: 0;">询价单释放成功</span>
                    </div>
                </div>
            </div>
        </div>
        <!--//////////////临采商品成功/////////////////-->
        <div id="TemporarySelectSuccessfully" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:87px;width: 257px;margin-top:50%;margin-left: 100px">
                    <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                        <span style="font-size: 18px;color: #333333;letter-spacing: 0;">商品已全部匹配成功，请选择报价完成</span>
                    </div>
                </div>
            </div>
        </div>
        <!--//////////////修改成功/////////////////-->
        <div id="SuccessfullyModified" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
                    <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                        <span style="font-size: 18px;color: #333333;letter-spacing: 0;">询价单修改成功</span>
                    </div>
                </div>
            </div>
        </div>
        <!--//////////////b保存成功/////////////////-->
        <div id="SavedSuccessfully" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
                    <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                        <span style="font-size: 18px;color: #333333;letter-spacing: 0;">询价单保存成功</span>
                    </div>
                </div>
            </div>
        </div></div></article>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--时间组件-->
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>

</body>
<script type="text/javascript" src="../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<!--页面JS-->

<script src="../../../ht-js/dockingplatform/channelorder/addInquiry.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script>
   /* $(function () {
        $("#form-search").Validform({
            tiptype: 2,
            callback: function (form) {
                save();
                return false;
            }
        })});*/



    Date.prototype.format = function (fmt) {
        var o = {
            "y+": this.getFullYear, //年
            "M+": this.getMonth() + 1, //月份
            "d+": this.getDate(), //日
        };
        if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
        for (var k in o)
            if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
        return fmt;
    }
    //setInterval("document.getElementById('created_time').innerHTML = (new Date()).format('yyyy-MM-dd');", 1000);
    /*$(function () {
        $("#customer_name").val(localStorage.getItem("choosecustomerName"));
        localStorage.removeItem("choosecustomerName");

        var chooseData = JSON.parse(localStorage.getItem("chooseData"));
        $("#ascription_lsit").val(chooseData.ascription_lsit);
        $("#project_name").val(chooseData.project_name);
        $("#tuisongmax").val(chooseData.tuisongmax);
        $("#tuisongmin").val(chooseData.tuisongmin);
        $("#projectName").val(chooseData.projectName);
        $("#contact").val(chooseData.contact);
        $("#getArea").val(chooseData.getArea);
        $("#getPlace").val(chooseData.getPlace);
        $("#getCity").val(chooseData.getCity);
        $("#getCountry").val(chooseData.getCountry);
    })*/



   //时间设置
   $(function () {


       function timeSet(startEl,timeFormat){
           var start = {
               format: "YYYY-MM-DD",
               minDate:getNowDate(),
               isClear:false,                               //是否显示清空
               isToday:false,
           };

           $.jeDate(startEl,start);
       }
       timeSet("#timemin","YYYY-MM-DD");

       function timeSet2(startEl,timeFormat){
           /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
           /*时间设置*/
           var thisMaxTime = $.nowDate().substring(0,$.nowDate().length-8)+"23:59:59";
           var start = {
               format: 'YYYY-MM-DD hh:mm:ss',
               minDate: $.nowDate(0).substring(0,$.nowDate().length-8)+"00:00:00",
               clearfun:function(val) {
                   start.minDate =$.nowDate().substring(0,$.nowDate().length-8)+"00:00:00";
                   start.maxDate ="2099-12-31 23:59:59";
                   end.minDate="1900-01-01 00:00:00";
                   end.maxDate ="2099-12-31 23:59:59";
               },
           };

           $.jeDate(startEl,start);
       }
       timeSet2("#timemax","YYYY-MM-DD hh:mm:ss");
   })


   function getNowDate() {
       var date = new Date();
       var year = date.getFullYear();
       var month = date.getMonth()+1;
       if(month<10){
           month = '0'+month;
       }
       var day = date.getDate()+1;
       if(day<10){
           day = '0'+day;
       }
       var hours = date.getHours();
       if(hours<9){
           hours = '0'+hours;
       }
       var minutes = date.getMinutes();
       if(minutes<9){
           minutes = '0'+minutes;
       }
       var seconds = date.getSeconds();
       if(seconds<9){
           seconds = '0'+seconds
       }
       return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
   }
   function Excelss() {
       $("#Excel").attr("href",'https://'+ window.location.host +'/api/admin/abaseservice/downLoadFromUrl?urlStr=https://fsyuncai-file.oss-cn-beijing.aliyuncs.com/common/20210826161739765942.xls&fileName=XJD')

   }
</script>
</html>











